package com.qwer.controller.comm;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.qwer.model.comm.UserInfo;
import com.qwer.service.comm.UserService;

@Controller
@RequestMapping("/reg")
public class RegController {
    
    @Autowired
    private UserService userService;
    
    
    @RequestMapping(value = { "/save"})
    @ResponseBody
    public String zpIndex(Map<String, Object> model,UserInfo info) {
        userService.save(info);
        return "1";
    }
    
    
}
